package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.AlertNode;
import com.azier.kapacitor.script.node.Node;

/**
 * 1 * @Author: luoj
 * 2 * @Date: 2020/1/19 17:19
 * 3
 */
public interface AlertNodeBind extends Node {
    /**
     Create an alert node, which can trigger alerts.
     **/
    /**
     创建一个警报节点，它可以触发警报。
     **/
    default AlertNode alert(){
        AlertNode nextNode = new AlertNode();
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}
